import {BasicColumn, FormSchema} from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '会员姓名',
    dataIndex: 'UName',
    width: 100
  },
  {
    title: '会员卡号',
    dataIndex: 'VipNum',
    width: 120
  },
  {
    title: '证件号',
    dataIndex: 'CerNum',
    width: 120
  },
  {
    title: '开卡地区',
    dataIndex: 'CCity',
    width: 120
  },
  {
    title: '所属销售',
    dataIndex: 'CompanyPromoter',
    width: 120
  },
  {
    title: '标题',
    dataIndex: 'TypeName',
    width: 120
  },
  {
    title: '操作数值',
    dataIndex: 'Balance',
    width: 120
  },
  {
    title: '电子金余额',
    dataIndex: 'DiscountNum',
    width: 120
  },
  {
    title: '创建日期',
    dataIndex: 'CreateTime',
    width: 120
  }
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'userName',
    label: '会员姓名',
    component: 'Input',
    colProps: {span: 4.5},
  },
  {
    field: 'phoneNum',
    label: '手机号',
    component: 'Input',
    colProps: {span: 5},
  },
  {
    field: 'vipNum',
    label: '会员卡号',
    component: 'Input',
    colProps: {span: 5},
  },
  {
    field: 'empName',
    label: '销售',
    component: 'Input',
    colProps: {span: 5},
  },
  {
    field: 'stime',
    label: '开始日期',
    component: 'DatePicker',
    colProps: {span: 6},
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    },
  },
  {
    field: 'etime',
    label: '结束日期',
    component: 'DatePicker',
    colProps: {span: 6},
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    },
  }
];
